import request from '@/utils/request'

export function getList(data) {
    return request({
        url: '/sysGroup/toList.do',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        },
        data,
    })
}

export function edit(data) {
    return request({
        url: '/sysGroup/toEdit.do',
        method: 'post',
        data,
    })
}

export function deleteOne(data) {
    return request({
        url: '/sysGroup/toDel.do',
        method: 'post',
        data,
    })
}

export function getOne(data) {
    return request({
        url: '/sysGroup/getOneInfo.do?id='+data,
        method: 'post',
    })
}

export function getGroupList() {
    return request({
        url: '/sysGroup/getAllList.do',
        method: 'post',
    })
}